<div class="big-list">
 <?php if(count($data)>0):?>
 	<div class="head-tool">
 	<div class="main-title">
 	<?php if($catID==null):?>
 		<?php echo $title;?>
 	<?php else:?>
 		<a href="<?php echo Yii::app()->controller->createUrlProductCat($catID);?>"><?php echo $title;?></a>
 	<?php endif;?>
 	</div>
	</div>
<div class="items-list">
 	<table cellpadding="1" cellspacing="1" border="0" style="background: #ccc;">
 	<tr>
 	<?php 
 	$i=0;
 	foreach($data as $key => $item):
 	$i++;
 	$link = Yii::app()->controller->createUrlProductDetail($item['product_id']);
 	?>
 	<td>
	<div class="big-item">
		<center>
	 	<div class="item-img"  rel="data-hover-<?php echo $item['product_id'];?>"><img src="<?php echo Yii::app()->params['shop_url']."/l/".$item['image'];?>" /></div>
	 	<a class="item-link" href="<?php echo $link;?>"><?php echo $item['title']; ?></a>
	 	<div class="item-price"><?php echo ShopHelpers::priceFormat($item['price']); ?></div>
	 	<div class="d-c"><a class="detail" href="<?php echo $link;?>">&raquo;chi tiết</a><a class="addcart" href="javascript:void(0);" onclick="addCart(<?php echo $item['product_id'];?>)">Cho vào giỏ hàng</a></div>
	 	</center>
	</div>
	<div style="display: none" id="data-hover-<?php echo $item['product_id'];?>">
		<div class="hover-box-data">
		<h3 class="title"><?php echo $item['title']; ?></h3>
		<div class="content-box-data">
		<p class="tts">Thông tin sản phẩm</p>
		<?php echo $item['description'];?></div>
		</div>
	</div>
	</td>
 	<?php 
 	//if($i%3==0 && count($data)>$i) echo '</tr><tr>';
 	if($i%3==0 && count($data)>$i) echo '</tr><tr>';
 	endforeach;?>
 	
 	<?php
 		while($i%3!=0){
			echo '<td></td>';
			$i++;
		}
 	?>
 	</tr>
 	</table>
</div>
<?php else:?>
<h5>Không có sản phẩm nào được tìm thấy.</h5>
<?php endif;?>
</div>